<?php 


// $dest = imageCreateFrompng("./xiaohai.png");

// $dx = imagesx($dest);
// $dy = imagesy($dest); 


// $mid = imageCreateTrueColor($dx*2/3,$dy*2/3);

// imagecopyresized ( $mid, $dest , 0 , 0 , 0 , 0 , $dx*2/3, $dy*2/3,$dx, $dy); 

// imagepng($mid,"./mid.png");


// $small = imageCreateTrueColor($dx*1/3,$dy*1/3);

// imagecopyresized ( $small, $dest , 0 , 0 , 0 , 0 , $dx*1/3, $dy*1/3,$dx, $dy); 

// imagepng($small,"./small.png");




include 'Code.class.php';


$config = array('length'=>3);

$obj = new Code($config);

$obj->entry();










 ?>